package com.saibowisdom.storage.aspirator.common.meta;

/**
 * 功能:   节点信息
 * 创建人: LDL
 * 时间:  2015/11/27 11:06
 */
public class NodeInfo {

    private int id;
    private String ip;
    private String host;
    private int type;
    /**
     * false 停止  true 启动
     */
    private boolean state;
    /**
     * 成功数
     */
    private int scount;
    /**
     * 失败数
     */
    private int fcount;
    /**
     * 忽略数
     */
    private int icount;
    /**
     * 更新时间 5分钟一次，大于5分钟没更新则判断为停止
     */
    private long updatetime;

    /**
     * 是否可停止
     */
    private boolean stop;

    /**
     * jar包部署路径
     */
    private String location;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }


    public int getScount() {
        return scount;
    }

    public void setScount(int scount) {
        this.scount = scount;
    }

    public int getFcount() {
        return fcount;
    }

    public void setFcount(int fcount) {
        this.fcount = fcount;
    }

    public int getIcount() {
        return icount;
    }

    public void setIcount(int icount) {
        this.icount = icount;
    }

    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public boolean isStop() {
        return stop;
    }

    public void setStop(boolean stop) {
        this.stop = stop;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
